<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
<script type="text/javascript">
    $(function() {
        mallShopSettlePeriodModel.init();
    });
    var mallShopSettlePeriodModel = (function(){

        /*初始化时间查询*/
        var initDate = function(){
            $("input[name='mallShop.createtime_begin']").attr("class","Wdate").click(function(){WdatePicker({dateFmt:'yyyy-MM-dd'});});
            $("input[name='mallShop.createtime_end']").attr("class","Wdate").click(function(){WdatePicker({dateFmt:'yyyy-MM-dd'});});
        }


        var module = {
            init :function(){
                initDate();
            },

            //导出文件
            exportFile : function (){
                window.location.href = 'mallShopSettlePeriodController.do?export&'+$("#mallShopSettlePeriodListForm").serialize();
            }

        }
        return module;
    })();
</script>
<div class="easyui-layout" fit="true">
  <div region="center" style="padding:0px;border:0px">
  <t:datagrid name="mallShopSettlePeriodList" title="结算规则" actionUrl="mallShopSettlePeriodController.do?datagrid" idField="id" fit="true" queryMode="group">
   <t:dgCol title="编号" field="id" hidden="true"></t:dgCol>
   <t:dgCol title="商家名称" field="mallShop.companyname" query="true"  width="300"></t:dgCol>
   <t:dgCol title="店铺名称" field="mallShop.shopname"  query="true"  width="120"></t:dgCol>
   <t:dgCol title="结算周期(天)" field="settledaycount"   width="120"></t:dgCol>
   <t:dgCol title="交易服务费(%)" field="settlerateshow"   width="120"></t:dgCol>
   <t:dgCol title="交易服务费(%)" field="settlerateadvanceshow"   width="120"></t:dgCol>
   <t:dgCol title="联系人" field="mallShop.contactperson"   width="120"></t:dgCol>
   <t:dgCol title="手机号" field="mallShop.phonenumber"   width="120"></t:dgCol>
   <t:dgCol title="地址" field="mallShop.contactaddress"   width="120"></t:dgCol>
   <t:dgCol title="店铺状态" field="mallShop.shopstatus"  replace="在营_1,关闭_2,暂停_3,审核中_4,未通过_5,冻结_6" width="120"></t:dgCol>
   <t:dgCol title="编辑人" field="createUserName"   width="120"></t:dgCol>
   <t:dgCol title="编辑时间" field="createtime" formatter="yyyy-MM-dd hh:mm:ss"  width="140"></t:dgCol>

   <t:dgCol title="审核时间" field="mallShop.createtime" hidden="true" query="true" queryMode="group"  formatter="yyyy-MM-dd hh:mm:ss"  width="140"></t:dgCol>
  <%-- <t:dgCol title="状态1有效 0无效" field="status"   width="120"></t:dgCol>--%>
  <%-- <t:dgCol title="createtime" field="createtime" formatter="yyyy-MM-dd hh:mm:ss"  width="120"></t:dgCol>
   <t:dgCol title="createuserid" field="createuserid"   width="120"></t:dgCol>--%>
   <%--<t:dgCol title="操作" field="opt" width="100"></t:dgCol>--%>
   <%--<t:dgDelOpt title="删除" url="mallShopSettlePeriodController.do?del&id={id}" />--%>
   <%--<t:dgToolBar title="录入" icon="icon-add" url="mallShopSettlePeriodController.do?addorupdate" funname="add"></t:dgToolBar>--%>
   <t:dgToolBar title="编辑" icon="icon-edit" url="mallShopSettlePeriodController.do?addorupdate" funname="update"></t:dgToolBar>
   <t:dgToolBar title="查看" icon="icon-search" url="mallShopSettlePeriodController.do?addorupdate" funname="detail"></t:dgToolBar>
      <t:dgToolBar operationCode="export" title="导出" icon="icon-putout" funname="mallShopSettlePeriodModel.exportFile"></t:dgToolBar>
  </t:datagrid>
  </div>
 </div>